import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirce: '/main'
  },
  {
    path: '/main',
    component: () => import('../components/main.vue')
  },
  {
    path: '/enjoy',
    component: () => import('../components/enjoy.vue')
  },
  {
    path: '/my',
    component: () => import('../components/my.vue')
  },
  {
    path: '/nearby',
    component: () => import('../components/nearby.vue')
  },
]

const router = new VueRouter({
  routes
})

export default router
